#pragma once

#include "Statement.h"
#include "Statement_List.h"
#include "Expression.h"
#include <iostream>

MAKE_PTR(CStatementIf);

class CStatementIf : public CStatement
{
public:
	CExpressionPtr m_pExp;
	CStatementListPtr m_pStatement;

protected:
	EvalType doEval()
	{
		if (m_pExp->eval())
		{
			m_pStatement->eval();
		}
		return 0;
	}
};